﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    /// <summary>
    /// Define Role Status
    /// </summary>
    public enum RoleStatus
    {
        InUse = 1,
        NoUse = 2
    }
    /// <summary>
    /// Define Role Model
    /// </summary>
    public class Role
    {
        private int _roleId;
        private string _roleName;
        private Status _status;
        private List<Authority> _authorities ;


        /// <summary>
        /// Role Id
        /// </summary>
        public int RoleId
        {
            get { return _roleId; }
            set { _roleId = value; }
        }

        /// <summary>
        /// Role Name
        /// </summary>
        public string RoleName
        {
            get { return _roleName; }
            set { _roleName = value; }
        }

        /// <summary>
        /// Role Status
        /// </summary>       
        public Status Status
        {
            get { return _status; }
            set { _status = value; }
        }

        /// <summary>
        /// Authority Attribute
        /// </summary>
        public List<Authority> Authorities
        {
            get { return _authorities; }
            set { _authorities = value; }
        }


    }
}
